package com.hl.qzzpbackend.model.dto.industryType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 修改行业类型请求类
 *
 * @author helong
 */
@Data
@ApiModel(value = "修改行业类型请求类")
public class IndustryTypeUpdateRequest implements Serializable {

    private static final long serialVersionUID = -8036607496954856340L;


    /**
     * 行业类型id
     */
    @NotNull(message = "行业类型id不能为空")
    @Min(value = 1, message = "行业类型id不能小于1")
    @ApiModelProperty(value = "行业类型id")
    private Long id;


    /**
     * 行业类型名称
     */
    @NotBlank(message = "行业类型名称不能为空")
    @ApiModelProperty(value = "行业类型名称")
    private String name;

}